package com.easylive.entity.enums;

public enum UserStatusEnum {
    DISABLE (0,"禁用"),
    ENABLE (1,"启用");

    private Integer status;
    private String desc;

    UserStatusEnum(Integer status,String desc){
    	this.status = status;
    	this.desc = desc;
    }

    public Integer getStatus(){
    	return this.status;
    }

    public String getDesc(){
    	return this.desc;
    }

    public static String getDescByStatus(Integer status){
    	for(UserStatusEnum item : UserStatusEnum.values()){
    		if(item.getStatus().equals(status)){
    			return item.getDesc();
    		}
    	}
    	return null;
    }

    public void setDesc(String desc){this.desc = desc;}
}
